<?php

namespace core\lib\upload;

use app\bll\SyscnfUpload as BllSyscnfUpload;
use Exception;

class UploadFile extends UploadBase
{
    public function __construct(bool $ispublic, $path = '')
    {
        $bllRcSyscnfUpload = new BllSyscnfUpload();
        $uploadcnf = $bllRcSyscnfUpload->find();
        parent::__construct(
            $uploadcnf['attachext'],
            $uploadcnf['attachsize'] * 1024 * 1024,
            $ispublic,
            $path
        );
    }
}
